package com.cals;

import java.util.Scanner;

/*
要写注释哦!!!
*/
public class Demo5 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个数字：");
        int a = sc.nextInt();
        System.out.println("请输入第一个数字：");
        int b = sc.nextInt();
        System.out.println("请输入第一个数字：");
        int c = sc.nextInt();

        int resoult = (a > b ? (a > c ? a : c) : (b > c ? b : c));
        System.out.println("最大值为：" + resoult);
    }
}
